package com.ck.jdk8.stream.service.impl;

import com.ck.jdk8.stream.dao.EsProductDao;
import com.ck.jdk8.stream.domain.EsProduct;
import com.ck.jdk8.stream.service.StreamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname StreamServiceImpl
 * @Description TODO
 * @Date 2020/5/28 19:44
 * @Created by lpc
 */
@Service
public class StreamServiceImpl implements StreamService {


    @Autowired
    private EsProductDao productDao;

    @Override
    public List<EsProduct> select() {
        List<EsProduct> esProductList = productDao.getAllEsProductList(null);
        return esProductList;
    }
}
